import csv
# 读
with open('employees.csv', newline='', encoding='UTF-8') as file_obj:
    reader_obj = csv.reader(file_obj)
    for row in reader_obj:
        print(row)
# 写
with open('products.csv', 'w', newline='', encoding='UTF-8') as file_obj:
    writer_obj = csv.writer(file_obj)
    writer_obj.writerow(['品名', '价格', '重量'])
    writer_obj.writerow(['大米', 80, 10])
    writer_obj.writerow(['白面', 65, 10])
    writer_obj.writerow(['玉米油', 9.5, 5])